﻿using System;
using System.Collections.Generic;
using System.Text;
using System.IO;

namespace CSCDBookConverter
{
    public class NodePageRange
    {
        private ushort m_nNodeID;
        private ushort m_nVolumeID;
        private ushort m_nMinPage;
        private ushort m_nMaxPage;

        public NodePageRange(ushort nNodeID,ushort nVolumeID,ushort nMinPage,ushort nMaxPage)
        {
            m_nNodeID = nNodeID;
            m_nVolumeID = nVolumeID;
            m_nMinPage = nMinPage;
            m_nMaxPage = nMaxPage;
        }

        public void Write(BinaryWriter writer)
        {         
            writer.Write(m_nNodeID);
            writer.Write(m_nVolumeID);
            writer.Write(m_nMinPage);
            writer.Write(m_nMaxPage);
        }
    }
}
